package com.smartlbs.enums;

/**
 * 性别枚举 
 *
 *
 */
public enum OrderStatusEnums {
	//
    UN_BET(-2, "未投注"), UN_ACCOUNT(-1, "未结算"), FAIL(0, "输"), SUCCESS(1, "赢"), ACCOUNT(2, "已结算");
    
    private Integer value;
    private String memo;
    
    private OrderStatusEnums(Integer value, String memo) {
    	this.value = value;
    	this.memo = memo;
    }
    
    public Integer getValue(){
    	return value;
    }
    
	public String getMemo() {
		return memo;
	}

	public static String getMemoByValue(Integer value){
		for(OrderStatusEnums e : OrderStatusEnums.values()){
			if(e.getValue() == value){
				return e.getMemo();
			}
		}
		return "";
	}
}